package epam.com.myThreads;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Semaphore;

public class Places {
	
	public Semaphore semaphore ;
	
	public Places(int countPlaces) {
		semaphore = new Semaphore(3);
	}
	
    public static List<Place> places = new ArrayList<Place>();
    
    public void addPlace(Place place) {
    	places.add(place);
    }

    public void clearPlaces() {
    	places.clear();
    }
   
}
